
#include "xdns-resource-record-info.h"
#include "xdns-data.h"

using namespace std;

XdnsResourceRecordInfo::XdnsResourceRecordInfo()
: m_type(0),
  m_class(0),
  m_rdlength(0),
  m_ttl(0),
  m_rdataOffset(0),
  m_name()
{
}

XdnsResourceRecordInfo::XdnsResourceRecordInfo(const XdnsResourceRecordInfo& anotherInfo)
: m_type(anotherInfo.m_type),
  m_class(anotherInfo.m_class),
  m_rdlength(anotherInfo.m_rdlength),
  m_ttl(anotherInfo.m_ttl),
  m_rdataOffset(anotherInfo.m_rdataOffset),
  m_name(anotherInfo.m_name)
{
}

XdnsResourceRecordInfo::~XdnsResourceRecordInfo()
{
}

XdnsResourceRecordInfo&
XdnsResourceRecordInfo::operator=(const XdnsResourceRecordInfo& anotherInfo)
{
    this->m_type = anotherInfo.m_type;
    this->m_class = anotherInfo.m_class;
    this->m_rdlength = anotherInfo.m_rdlength;
    this->m_ttl = anotherInfo.m_ttl;
    this->m_rdataOffset = anotherInfo.m_rdataOffset;
    this->m_name = anotherInfo.m_name;

    return (*this);
}

